//
//  HWFuliTableViewCell.m
//  HWanGame
//
//  Created by 陈道斌 on 2019/9/9.
//  Copyright © 2019 Chendaobin. All rights reserved.
//

#import "HWFuliTableViewCell.h"
@interface HWFuliTableViewCell()
@property(weak,nonatomic) UIImageView *pictureimageView;
@property(weak,nonatomic) UILabel *namelabee;


@end



@implementation HWFuliTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}


-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    if (self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        // 设置UI
        
        [self setUpUI];
    }
    
    return  self;
}
// 设置UI
-(void)setUpUI {
    
     UIImageView *imageView = [[UIImageView alloc]initWithFrame:CGRectMake(16, 3, kScreenW-32, 75*CFLScaleValue)];
    imageView.image = [UIImage imageNamed:@"details_bg"];
    self.pictureimageView = imageView;
    [self.contentView addSubview:imageView];
    
    UILabel *miashilabel = [[UILabel alloc]initWithFrame:CGRectMake(10, 0, kScreenW-32, 75*CFLScaleValue)];
    miashilabel.text = @"暂无福利活动,敬请期待!";
    
    miashilabel.text = [HWjianzhiduiObject keylocalization:@"暂无福利活动,敬请期待!"];
    
    
    miashilabel.textColor = RGB(51, 51, 51);
    miashilabel.font = [UIFont systemFontOfSize:13];
    self.namelabee = miashilabel;
    [imageView addSubview:miashilabel];
    
    
}

- (void)setFuli_infoSt:(NSString *)fuli_infoSt {
    
    _fuli_infoSt = fuli_infoSt;
    
    if ([fuli_infoSt isEqualToString:@""]) {
         self.namelabee.text = @"暂无福利活动,敬请期待！";
        
        self.namelabee.text = [HWjianzhiduiObject keylocalization:@"暂无福利活动,敬请期待!"];
    } else {
        self.namelabee.text = fuli_infoSt;
        
    }
    
    
    
}

@end
